<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/echarts/5.4.2/echarts.min.js"></script>
</head>
<body>
    <div id="main" style="width: 100%; height: 600px;"></div>
</body>
<script>
    let mainDom = document.querySelector('#main');
    let mychart = echarts.init(mainDom);

    let option = {
        title:{
            text:'我的图表'
        },
        legend:{
            data:['nijiga']
        },
        xAxis:{
            data:['kasumi','shizuku','rina','shioriko','ayumu','setsuna','ai','lanzhu','emma','kanata','karin','mia'],
            type:'category'
        },
        yAxis:{

        },
        tooltip:{

        },
        series:[
            {
                type:'line',
                data:[154,158,148,156,158,155,160,164,165,157,168,154],
                name:'nijiga'
            }
        ]
    }

    mychart.setOption(option);
</script>
</html>